package com.fdb.efp.nls.service.facade;

import com.fdb.efp.nls.service.vo.SRoleRescRuleParamVO;
import com.fdb.efp.nls.service.vo.SRoleRescRuleVO;

import java.util.List;

/**
 * <p>
 * Description:系统角色对应资源操作信息表
 * <p>
 * 
 * @author fuzm
 * @date 2018-05-04
 */
public interface SRoleRescRuleService {

	public List<SRoleRescRuleVO> queryAllOwner(SRoleRescRuleVO sRoleRescRuleVo);

	public List<SRoleRescRuleVO> queryAllCurrOrg(SRoleRescRuleVO sRoleRescRuleVo);

	public List<SRoleRescRuleVO> queryAllCurrDownOrg(SRoleRescRuleVO sRoleRescRuleVo);

	public int insertSRoleRescRule(SRoleRescRuleVO vo);

	public int deleteByPk(SRoleRescRuleVO sRoleRescRuleVo);

	public int updateByPk(SRoleRescRuleVO sRoleRescRuleVo);

	public SRoleRescRuleVO queryByPk(SRoleRescRuleVO sRoleRescRuleVo);

	/**
	 * 查询角色对应资源操作码
	 * 
	 * @param roleCode
	 *            角色码
	 * @param rescCode
	 *            资源码
	 * @return
	 */
	public List<String> queryRoleRescRules(SRoleRescRuleVO sRoleRescRuleVo);

	/**
	 * 插入角色对应资源操作码
	 * 
	 * @param sRoleRescRuleParamVO
	 * @return
	 */
	public int saveRoleRescRule(SRoleRescRuleParamVO sRoleRescRuleParamVO);

}
